package database;

/**
 * Created by IntelliJ IDEA.
 * User: grigory.rozhkov
 * Date: 12.09.12
 * Time: 0:44
 * To change this template use File | Settings | File Templates.
 */
public interface IDBObject extends Comparable {

    public boolean create(String id, String description);

    public boolean update(String description);

    public String getDescription();

    public String getId();

    public String convertToString();

    public boolean isDeleted();

    public void delete();

    public int compareTo(IDBObject anotherObject);

    public boolean equalsTo(IDBObject anotherObject);
}
